package conventer;

import java.util.Collection;
import java.util.List;

/**
 * 转换器接口
 * @param <B>
 * @param <E>
 */
public interface IConverter<B, E> {
    B toBean(E entity);
    E toEntity(B bean);
    List<B> toBeans(Collection<E> entities);
    List<E> toEntities(Collection<B> beans);
}
